home *** CD-ROM | disk | FTP | other *** search
- # charsheet:companions 1.3
- #
- # Copyright 1991, Chris Seabrook
- #
- # This work may be freely used. modified and distributed for non-commercial
- # purposes so long as it retains this notice.
- #
- # companions(number)
- # companion(name, race, ac, hd, thac0, hp, #atks, dam, special)
- .PS
- define companion X
- if ncompanion>0 then Y
- ncompanion=ncompanion-1
- [
- box invis wid 2*sheetwid/12 ht boxht/2 "$1"
- box invis wid 2*sheetwid/12 ht boxht/2 "$2"
- box invis wid sheetwid/24 ht boxht/2 "$3"
- box invis wid sheetwid/24 ht boxht/2 "$4"
- box invis wid sheetwid/12 ht boxht/2 "$5"
- box invis wid sheetwid/24 ht boxht/2 "$6"
- box invis wid sheetwid/24 ht boxht/2 "$7"
- box invis wid sheetwid/12 ht boxht/2 "$8"
- box invis wid 8*sheetwid/24 ht boxht/2 "$9"
- ] with .sw at Ncompanion.sw + (0, ncompanion*boxht/2)
- Y
- X
- define companions X
- ncompanion=$1
- Ncompanion: [
- box invis wid 2*sheetwid/12 ht 2*boxht/3 "\f(HB\s+2Companions\s0\fP"
- box invis wid 2*sheetwid/12 ht 2*boxht/3 "\f(HBRace/Species\fP"
- box invis wid sheetwid/24 ht 2*boxht/3 "\f(HBAC\fP"
- box invis wid sheetwid/24 ht 2*boxht/3 "\f(HBHD\fP"
- box invis wid sheetwid/12 ht 2*boxht/3 "\f(HBTHAC0\fP"
- box invis wid sheetwid/24 ht 2*boxht/3 "\f(HBHP\fP"
- box invis wid sheetwid/24 ht 2*boxht/3 "\f(HB#Atks\fP"
- box invis wid sheetwid/12 ht 2*boxht/3 "\f(HBDamage\fP"
- box invis wid 8*sheetwid/24 ht 2*boxht/3 "\f(HBSpecial\fP"
- for count=1 to $1 by 1 do Y
- box wid 2*sheetwid/12 ht boxht/2 with .nw at 9th last box.sw
- box wid 2*sheetwid/12 ht boxht/2
- box wid sheetwid/24 ht boxht/2
- box wid sheetwid/24 ht boxht/2
- box wid sheetwid/12 ht boxht/2
- box wid sheetwid/24 ht boxht/2
- box wid sheetwid/24 ht boxht/2
- box wid sheetwid/12 ht boxht/2
- box wid 8*sheetwid/24 ht boxht/2
- Y
- ] with .n at last box.s + 0,-1*border
- box ht last [].ht+border wid last [].wid+border at last []
- X
- .PE
-